﻿
namespace Trentacular.SharePoint.Deployment.Data.Proxy
{
    public abstract class BaseDomainListLazyInitializer<TOwner, TListItem> : BaseListLazyInitializer<TListItem>
    {
        public TOwner Owner { get; set; }

        private App _app;
        protected App App
        {
            get
            {
                if (_app == null)
                    _app = App.Current;
                return _app;
            }
        }

        protected AppData Data { get { return App.Data; } }
    }
}
